#!/usr/bin/python2.7

class Test():

    def __getattr__(self, key):
        if key == 'testing':
            return "OK"
        else:
            raise ValueError

    def __len__(self, other):
        return 5

try:
    testing = Test()
    testing.x = 'Hello world'
    print testing.testing
    print testing.x
    value = len(testing.x)
    print value
except:
    print "error"
